import axios from '~/axios'

export function getDeploymentsApi(data){
    return axios.get("/api/k8s/deployments",data)
}

export function createDeploymentApi(data){
    return axios.post("/api/k8s/deployment/create",data)
}

export function updateDeploymentApi(data){
    return axios.put("/api/k8s/deployment/update",data)
}

export function deleteDeploymentApi(data){
    return axios.delete("/api/k8s/deployment/del", data)
}

export function deploymentDetailApi(data){
    return axios.get("/api/k8s/deployment/detail",data)
}

export function scaleDeploymentApi(data){
    return axios.put("/api/k8s/deployment/scale",data)
}

export function restartDeploymentApi(data){
    return axios.put("/api/k8s/deployment/restart",data)
}